﻿@model CSF.Customers.Data.Region
@{
    ViewBag.Title = "Edit";
    ViewBag.SubTitle = "Region";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
@using (Html.BeginForm())
{  
   
    <div id="container">
        <div id="formStyle">
            <fieldset>
                <legend></legend>
                @Html.ValidationSummary(true)
                <p class="first">
                    <label for="name">
                        Code</label>
                    @Html.TextBoxFor(model => model.Code)
                    @Html.ValidationMessageFor(model => model.Code)
                </p>
                <p>
                    <label for="email">
                        Name1</label>
                    @Html.TextBoxFor(model => model.Name1)
                    @Html.ValidationMessageFor(model => model.Name1)
                </p>
                <p>
                    <label for="web">
                        Name2</label>
                    @Html.TextBoxFor(model => model.Name2)
                    @Html.ValidationMessageFor(model => model.Name2)
                </p>
                <p>
                    <label for="web">
                        Name3</label>
                    @Html.TextBoxFor(model => model.Name3)
                    @Html.ValidationMessageFor(model => model.Name3)
                </p>
                <p>
                    <label for="web">
                        Default Currency</label>
                    @Html.TextBoxFor(model => model.DefaultCurrency)
                    @Html.ValidationMessageFor(model => model.DefaultCurrency)
                </p>
                <p>
                    <label for="web">
                        Sequence</label>
                    @Html.TextBoxFor(model => model.Sequence)
                    @Html.ValidationMessageFor(model => model.Sequence)
                </p>
                <p>
                    @Html.ActionLink("Back to List", "Index")
                </p>
            </fieldset>
            <fieldset>
                <legend></legend>
                <p>
                    <label for="web">
                        Freight</label>
                    @Html.TextBoxFor(model => model.Freight)
                    @Html.ValidationMessageFor(model => model.Freight)
                </p>
                <p>
                    <label for="web">
                        Duty</label>
                    @Html.TextBoxFor(model => model.Duty)
                    @Html.ValidationMessageFor(model => model.Duty)
                </p>
                <p>
                    <label for="web">
                        VAT</label>
                    @Html.TextBoxFor(model => model.VAT)
                    @Html.ValidationMessageFor(model => model.VAT)
                </p>
                <p>
                    <label for="web">
                        Factor</label>
                    @Html.TextBoxFor(model => model.Factor)
                    @Html.ValidationMessageFor(model => model.Factor)
                </p>
                 <p>
                    <label for="web">
                        Terms</label>
                    @Html.DropDownListFor(m => m.TermsCode, ViewData["TermsList"] as IEnumerable<SelectListItem>, "--please select--", new { @style = "width:200px" })
                    @Html.ValidationMessageFor(model => model.TermsCode)
                </p>
            </fieldset>
            <p class="submit">
                <button type="submit">
                    Save</button></p>
        </div>
    </div>
}